<?php	
	$compl = path_compl($_GET["path"]);
	if (!is_restricted($compl)){
		$template->_template_read("Applications/editor/Templates/editor.html");
		$template->_template_assign("PATH", $compl);
		$template->_template_assign("EDIT", "true");
		$template->_template_assign("FILE", (string)$language->common->value_49.".txt");
		// Zeige MOVE-TO Ordnern an, falls gewünscht
		$folders_boot = "./System/Kernel/folders.boot";
		if (ALLOW_EASY_MOVE == true){
			if (file_exists($folders_boot)){
				$db_boot = sqlite_open($folders_boot);
				$array_boot = sqlite_array_query($db_boot, "SELECT folder FROM folders", SQLITE_ASSOC);
				$entrys = array();
				foreach ($array_boot as $entry){
					if (path_compl($entry["folder"]) === path_compl($_GET["path"])){
						$entrys["SELECTED"] = "selected=\"selected\"";	
					} else {
						$entrys["SELECTED"] = "";
					}
					$entrys["MOVE_FULL"] = $entry["folder"];
					$template->_template_append("MOVE_TO", $entrys);
				}
			}
		}
	} else {
		oyster_log("ERROR", (string)$language->errors->value_3, "Editor new");
		$head->_template_assign("ERROR", (string)$language->errors->value_3);
		include("System/Kernel/Includes/index.include.php");
	}
?>